<template>
    <div>
        <a-button @click="jump('1')">id1</a-button>
        <a-button @click="jump('2')">id2</a-button>
    </div>
</template>
<script>
import { useRouter } from 'vue-router'
export default {
    name: 'Route1',
    setup () {
        console.log('页面1')
        const route = useRouter()

        const jump = (id) => {
            route.push(`/menu/5/${id}`)
        }

        return {
            jump
        }
    }
}
</script>
